package com.shopping_back.service;

import com.shopping_back.pojo.dto.PageDTO;
import com.shopping_back.pojo.dto.PromotionCreateDTO;
import com.shopping_back.pojo.dto.PromotionUpdateDTO;
import com.shopping_back.pojo.dto.PromotionConfigDTO;
import com.shopping_back.pojo.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping_back.pojo.vo.SkuVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 促销活动表 服务类
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
public interface IPromotionActivityService extends IService<PromotionActivity> {

    Map<String, Object> getPromotionsByType(java.lang.Integer page, java.lang.Integer size, java.lang.Integer type);

    List<SkuVO> getSkus(Long id);

    void addSeckillItem(SeckillItem seckillItem);

    void addGroupbuyItem(GroupbuyItem item);

    void addFullReductionItem(FullReductionItem item);

    void addComboItem(Long activityId, Long skuId);

    List<?> getPromotionItems(Long activityId, Integer type);

    void deletePromotionItem(Long activityId, Long skuId, Integer type);

    PageDTO<PromotionActivity> listPage(Integer pageNum, Integer pageSize, String name, String type);

    void create(PromotionCreateDTO dto);

    void updateBasic(PromotionUpdateDTO dto);

    void deleteCascade(Long id);

    void updatePromotionConfig(PromotionConfigDTO config);

    List<SkuVO> getSkusByAd();
}
